﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="HCFramework.AdminTool.LanguageManagement.Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="groupHeader">
        Language management
    </div>
    <div style="padding-bottom: 5px">
        Vietnam:
        <asp:TextBox ID="txtFilterVN" Width="300px" runat="server"></asp:TextBox>
        English:
        <asp:TextBox ID="txtFilterEN" Width="300px" runat="server"></asp:TextBox>
        <asp:Button ID="btnFilter" runat="server" Text="Filter" />
    </div>
    <asp:Panel ID="PanelGrid" runat="server">
        <telerik:radgrid id="RadGridMain" runat="server" skin="Office2007" autogeneratecolumns="False"
            onitemcommand="RadGridMain_ItemCommand" onprerender="RadGridMain_PreRender"
            allowpaging="True" allowsorting="True" gridlines="None" allowmultirowselection="True">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView CommandItemSettings-AddNewRecordText="Thêm mới"
            NoMasterRecordsText="No records.">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <CommandItemSettings AddNewRecordText="Thêm mới" />
            <Columns>
                <telerik:GridClientSelectColumn UniqueName="column">
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn DataField="LanguageID" UniqueName="LanguageID" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Vietnam" UniqueName="VietNam">
                    <ItemTemplate>
                        <asp:TextBox ID="txtVietNam" AutoCompleteType="None" Width="100%" runat="server" Text='<%#Eval("VietNam")%>'></asp:TextBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="English" UniqueName="English">
                    <ItemTemplate>
                        <asp:TextBox ID="txtEnglish" AutoCompleteType="None" Width="100%" runat="server" Text='<%#Eval("English")%>'></asp:TextBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                
            </Columns>
        </MasterTableView>
    </telerik:radgrid>
        <div style="padding-top: 10px">
            <asp:LinkButton ID="LinkButtonUpdate"
                runat="server" CssClass="linkButton" onclick="LinkButtonUpdate_Click">Update</asp:LinkButton>
            <asp:LinkButton ID="LinkButtonDelete" OnClientClick="return confirm('Are you sure?');"
                runat="server" CssClass="linkButton" onclick="LinkButtonDelete_Click">Delete</asp:LinkButton>
        </div>
    </asp:Panel>
</asp:Content>
